package com.hp.siminterface.webservice.impl;

import java.util.List;

import com.hp.siminterface.domain.DDMMSlots;
import com.hp.siminterface.persistence.DDMMSlotsMapper;
import com.hp.siminterface.webservice.DDMMSlotsService;

public class DDMMSlotsServiceImpl implements DDMMSlotsService {
	private DDMMSlotsMapper ddmmSlotsMapper;

	@Override
	public DDMMSlots[] getDDMMSlotsInfo() {
		List<DDMMSlots> ddmmSlots = ddmmSlotsMapper.selectDDMMSlots();
		DDMMSlots[] ddmmSlotArray = new DDMMSlots[ddmmSlots.size()];
		int i = 0;
		for (DDMMSlots ddmmSlot : ddmmSlots) {
			ddmmSlotArray[i] = ddmmSlot;
			i++;
		}
		return ddmmSlotArray;
	}

	public void setDdmmSlotsMapper(DDMMSlotsMapper ddmmSlotsMapper) {
		this.ddmmSlotsMapper = ddmmSlotsMapper;
	}

}
